package com.malamute.system.aop;

import org.apache.log4j.Logger;
import org.aspectj.lang.JoinPoint;
import org.springframework.beans.factory.annotation.Autowired;

import com.malamute.system.service.LogService;

/**
 * @author Aceguan
 * @description 无法使用
 * @date 2012-2-29 下午07:53:12
 * @version v1.0
 */

public class LogAspect {
	@Autowired
	private LogService logService;

	Logger log = Logger.getLogger(LogAspect.class);

	/**
	 * @param jp
	 *            执行方法时，日志操作
	 */
	public void doBefore(JoinPoint jp) {
		log.info("LogAspect doBefore");
		log.info(jp.getSignature().getName());
	}

	/**
	 * 
	 * @param jp
	 * @param ex
	 *            产生异常，日志
	 */
	public void doThrowing(JoinPoint jp, Throwable ex) {
		// log.info("LogAspect doThrowing");
	}

}
